﻿// Original author contact info: Owen Emlen (owene_1998@yahoo.com)
// Note: other individuals may also have contributed to this code
// Project hosted on CodePlex.com as of 1/10/2009 at http://www.codeplex.com/EmlenMud
using System;
using System.Runtime.Serialization;
using System.ComponentModel;

namespace BrainTechLLC
{
#if NO_SILVERLIGHT
    [Browsable(true)]
    [TypeConverter(typeof(ExpandableObjectConverter))]
#endif
    [Serializable]
    [DataContract]
    public class TimeFlow : ITimeFlow
    {
        public TimeFlow() { StartTime = DateTime.Now; CurrentTime = DateTime.Now; }
        public DateTime StartTime { get; set; }
        public DateTime CurrentTime { get; set; }

        public DateTime UpdateTime()
        {
            CurrentTime = DateTime.Now;
            return CurrentTime;
        }
    }
}
